<?php
//Application root
define('APPLICATION_DIR', str_replace('\\', '/', realpath(dirname(__FILE__) . '/..')));

//BO website suffix
define('WEBSITE_SUFFIX', '/bo');
//BO EP
define('APPLICATION_BO_EP_URL', 'http://localhost/bo');

if (isset($_SERVER['HTTP_HOST']))
	define( 'APPLICATION_URL', 'http://' . $_SERVER['HTTP_HOST'] . WEBSITE_SUFFIX );
else
	define( 'APPLICATION_URL', '../');

//Application name
define('APPLICATION_NAME', 	'CMS');

//Smarty config
define('TEMPLATE_DIR', APPLICATION_DIR.'/application/view/templates');
define('TEMPLATE_C_DIR', APPLICATION_DIR.'/application/view/templates_pub');

//PHP path
define('PHP_EXEC_PATH', 'php ');

//Language config
define('APP_DEFAULT_LANGUAGE', 'eng');

//language support
$language_support = array('eng','fra');

//Timezone config
define('TIMEZONE', 'Asia/Saigon');

//Manual current time for testing purpose (day/month/year hour:minute:second)
define('MANUAL_CURRENT_TIME', null);

//Database config
define('DATABASE_MAIN_SERVER',      'localhost');
define('DATABASE_MAIN_NAME',        'cms');
define('DATABASE_MAIN_LOGIN',       'root');
define('DATABASE_MAIN_PASSWORD',    '');

$database_dsn['database_'.DATABASE_MAIN_NAME] = 'mysql://'.DATABASE_MAIN_LOGIN.':'.DATABASE_MAIN_PASSWORD.'@'.DATABASE_MAIN_SERVER.'/'.DATABASE_MAIN_NAME.'?new_link=true';

// ADS WDSL PATH
define('ADS_WDSL_PATH',     "/var/www/htc_deal/trunk/ws/AdServer_1_3.wsdl");